import React from 'react';
import styles from './index.module.css';
import Icon from '../layout/Icon';

const NoData = (props) => {
  const { src, text, marginTop = '10px' } = props;
  return (
    <div className={styles['no-data']} style={{ marginTop }}>
      <Icon src={src} width={80} height={80} />
      <div className={styles['no-text']}>{text}</div>
    </div>
  );
};

export default NoData;
